package org.dromara.system.domain.bo;

import org.dromara.system.domain.SkyAbnornal;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 经营异常和严重违法业务对象 sky_abnornal
 *
 * @author Lion Li
 * @date 2024-09-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SkyAbnornal.class, reverseConvertGenerate = false)
public class SkyAbnornalBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 列入异常名录原因
     */
    private String putReason;

    /**
     * 决定列入异常名录部门(作出决定机关)
     */
    private String putDepartment;

    /**
     * 列入日期
     */
    @NotNull(message = "列入日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date putDate;

    /**
     * 移除异常名录原因
     */
    private String removeReason;

    /**
     * 移出部门
     */
    private String removeDepartment;

    /**
     * 移除日期
     */
    @NotNull(message = "移除日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date removeDate;

    /**
     * 数据类型
     */
    @NotNull(message = "数据类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dataType;
}
